
#ifndef _SDL2_LCD_H_
#define _SDL2_LCD_H_

#include <SDL2/SDL.h>
#include <stdint.h>

#define SDL2_LCD_VERSION "1.0.0"

#define SDL2_RGB565   0x0
#define SDL2_ARGB8888 0x1

typedef struct _sdl2_lcd {
	struct {
		struct {
			int width;
			int height;
			int fmt;
		} fix;
		struct {
			int dir;
		} var;
	} cfg;
	struct {
		void* window;
		void* renderer;
		void* texture;
	} priv;
} sdl2_lcd;

int sdl2_lcd_init(sdl2_lcd* lcd);
int sdl2_lcd_fill(sdl2_lcd* lcd, int x1, int y1, int x2, int y2, uint16_t* color);
void sdl2_lcd_deinit(sdl2_lcd* lcd);

#endif